<?php 
/**
 * ... ...
 * ... ...
 *
 */ 


JCAT_Package::ImportClass('JCAT_Controller',JCAT::PACKAGE_MVC) ;

/**
 * 控制器类 DocumentBase 
 *
 * @access public
 */
class DocumentBase 
	extends JCAT_Controller 
{

	/**
	 * 构造函数 
	 * 
	 * @access	public
	 * @param	$aParent	JCAT_IController	父控制器 
	 * @return	void
	 */
	public function DocumentBase(JCAT_IController $aParent=null, $aDoc )
	{
		// 调用父类构造函数
		$this->JCAT_Controller(__CLASS__,$aParent) ;
		
		$this->AddDocument($aDoc,'MainDoc') ;
		
		// 初始化文档、视图、子控制器 
		$this->Initialize() ;
	}

	/**
	 * 初始化文档、视图、子控制器 
	 * 
	 * @access	protected
	 * @return	void
	 */
	protected function Initialize()
	{		
		$sHere = JCAT_Global::TidyPath( dirname(__FILE__) ) ;
		
		//<<[UnmodifiableBlock.Start]::Initialize Children::>>//
		// 创建并加载视图：DocumentInfoView
		JCAT_Package::ImportClass('DocumentInfoView',$sHere.'class.DocumentInfoView.php');
		$aView = new DocumentInfoView($this) ;
		$this->AddView($aView) ;
		//<<[UnmodifiableBlock.End]::Initialize Children::>>// 

		//<<[UnmodifiableBlock.Start]::Register Children Global Name::>>//

		//<<[UnmodifiableBlock.End]::Register Children Global Name::>>// 
		
		// 文档
		$aDoc = $this->GetDocument('MainDoc') ;
		JCAT_ASSERT::ASSERT_INSTANCE($aDoc,'JCAT_IDocument') ;
				
		// 视图 <-> 文档
		$aView = JCAT_View::GetViewByGlobalName('DocumentInfoView') ;
		$aView->SetDocument($aDoc) ;
		

		
		
	}

	
	/**
	 * 执行入口函数 
	 * 
	 * @access	public
	 * @param	$arrArg=array	array	参数 
	 * @return	void
	 */
	public function MainRun(array $arrArg=array())
	{
		//<<[UnmodifiableBlock.Start]::Main Run::>>// 
 
		//<<[UnmodifiableBlock.End]::Main Run::>>// 

		// TODO
		// ... ...
	}

}

?><?
/**
 * [注意!!]
 *	以下内容由 JCAT PHP Toolbox 自动维护，手动更改的内容会被 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